<%@ page contentType="text/html;charset=UTF-8" language="java" %>  
<%@include file="/common/jsp/common_header.jsp"%>
    <script>
       var body_width=150;
        var body_height=150;
    </script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
	var validater;
$().ready(function() {
			validater=$("#createContent").validate({
				rules: {
					"dnCmsContent.title": "required"
				}
			});
			
		});
    function dosave() {
           $("#createContent").attr("action",ctx+"/cms/cmscontent!saveContent.action");
           $("#createContent").submit();
    }
    function goBack() {
        var columnId = $("#columnId").val();
        self.location = ctx+"/cms/cmscontent!listNonPublicedContents.action?columnId=" + columnId
    }

</script>
<s:form name="createContentForm"   method="post" id="createContent" >
<s:hidden name="dnCmsContent.id" ></s:hidden>
<s:hidden name="columnId" id="columnId"></s:hidden>
<table id="display" height="100%" width="100%">
    <tr>
        <td valign="top">
            <div id="layer1" style="width:100%; height:100%; z-index:50; overflow: auto;">
                <table width="100%" align="left">

                    <tr>
                        <td valign="top" class="contentTd">



                            <!-- display a margin below tabpane-->
                            <table width="100%" height="10">
                                <tr>
                                    <td></td>
                                </tr>
                            </table>
                            <!-- end display-->
                            <table width="100%" height="100%">
                                <tr>
                                    <td height="100%">
                                        <table width="100%" class="common_input_table">

                                            <tr>
                                                <td class="common_td_lable" width="20%">
                                                      信息名称:
                                                </td>
                                                <td class="common_td_text_left" width="80%">
                                                    <s:textfield  name="dnCmsContent.title" theme="simple" maxlength="50" size="85%"/>
                                                    <span class="interim">&nbsp;<font color="red">*</font></span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="common_td_lable" width="20%">
                                                 	 关键字:
                                                </td>
                                                <td class="common_td_text_left" width="80%">
                                                    <s:textfield  name="dnCmsContent.keywords" theme="simple" maxlength="45" size="25%"/>
                                                    <!--  <span class="interim">&nbsp;<font color="red">*</font></span>  -->
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="common_td_lable" width="20%">
                                                 	 作者:
                                                </td>
                                                <td class="common_td_text_left" width="80%">
                                                    <s:textfield  name="dnCmsContent.creator" theme="simple" maxlength="45" size="25%"/>
                                                    <!--  <span class="interim">&nbsp;<font color="red">*</font></span>  -->
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="common_td_lable">
                                                   重要程度:
                                                </td>
                                                <td class="common_td_text_left">
                                                    <select name="dnCmsContent.important">
                                                        <option value=6>置顶</option>
                                                        <option value=4>重要</option>
                                                        <option value=2
                                                                selected>一般</option>
                                                    </select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="common_td_lable" colspan="2">
                                                  信息内容:
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" class="common_td_text_left">
                                                    <textarea id="content" name="contenttext"><s:property value="contenttext"></s:property></textarea>
                                                    <script type="text/javascript">
                                                        var oFCKeditor = new FCKeditor('content') ;
                                                        oFCKeditor.BasePath = ctx+"/common/FCKeditor/";
                                                        oFCKeditor.Height = 400;
                                                        oFCKeditor.ToolbarSet = "Default";
                                                        oFCKeditor.ReplaceTextarea();
                                                    </script>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </td>
    </tr>

    <tr>
        <td height='24' valign='bottom'>
            <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                <tr>
                    <td height='30' background='<%=request.getContextPath()%>/ui/skin/donave/images/sea_r29_c20.jpg'> &nbsp; &nbsp;
                        <input type="button" id="doSave" class="button2" value="保存"
                               onclick="dosave()"/>&nbsp;&nbsp;

                        <input type="button" class="button2" value="返回"
                               onclick="goBack()">
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</s:form>
</body>
</html>